<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:app="http://java.sun.com/jsf/composite/app"
                xmlns:ds="http://deltaset.org/deltaset-faces"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core" >
        
        <c:set target="#{viewScope}" property="userDetailPageHelper" value="#{pageHelper}"/>
        <ds:pagedDataTable            
            pageHelper="#{viewScope.userDetailPageHelper}"
            pageParamName="page">
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{userDetailMsg['firstName']}"/>
                </f:facet>
                <h:outputText value="#{item.firstName}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{userDetailMsg['lastName']}"/>
                </f:facet>
                <h:outputText value="#{item.lastName}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{userDetailMsg['phone']}"/>
                </f:facet>
                <h:outputText value="#{item.phone}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{userDetailMsg['email']}"/>
                </f:facet>
                <h:outputText value="#{item.email}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{userDetailMsg['type']}"/>
                </f:facet>
                <h:outputText value="#{item.type}"/>
            </h:column>

            <h:column>
                <f:facet name="header">
                    <h:outputText escape="false" value=""/>
                </f:facet>
                <ds:rowButtons
                    outcomeDetail="/secured/userDetail/detail"
                    outcomeEdit="/secured/userDetail/form"
                    deleteListener="#{userDetailBean.deleteAndReset(item,viewScope.userDetailPageHelper)}"
                    modelIdParamName="userDetailId"
                    modelId="#{item.id}"/>                
            </h:column>           
        </ds:pagedDataTable>
</ui:composition>